package com.sh.data.engine.application.model.mapper.workspace;

import com.sh.data.engine.application.model.dto.workspace.BaseStorageDTO;
import com.sh.data.engine.application.model.dto.workspace.StorageDTO;
import com.sh.data.engine.domain.workspace.manager.model.domain.StorageDetailDomain;
import com.sh.data.engine.domain.workspace.manager.model.domain.StorageListDomain;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * @author: mengzheng.mhc
 * @date: 2024/6/24 11:50
 */
@Mapper(componentModel = "spring")
public interface StorageDTOMapper {

    BaseStorageDTO domainToDto(StorageListDomain domain);

    List<BaseStorageDTO> map(List<StorageListDomain> domains);

    StorageDTO domainToDto(StorageDetailDomain domain);
}
